//
//  GDLog.h
//  GuiderHealth
//
//  Created by zyming on 2022/4/28.
//  Copyright © 2022 YM&EF. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

#define GDLog(frmt,...) [GDLog logWithLine:__LINE__ method:[NSString stringWithFormat:@"%s", __FUNCTION__] time:[NSDate date] format:[NSString stringWithFormat:frmt, ## __VA_ARGS__]]

@interface GDLog : NSObject

//+ (void)initHandler;
+ (void)setFileLogOnOrOff:(BOOL)on;
+ (BOOL)getFileLogOnOrOff;
+ (void)logWithLine:(NSUInteger)line
             method:(NSString *)methodName
               time:(NSDate *)timeStr
             format:(NSString *)format;

+ (NSArray <NSString *>*)getLogDataInfo;

+ (BOOL)removeFileWithPath:(NSString *)path;

@end


NS_ASSUME_NONNULL_END
